package br.ufpe.cin.mac.parser;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class Binds {

	public final static String tagName = "Binds";
	
	private Map<String,XBind> binds;
	
	public Binds() {
		binds = new HashMap<String, XBind>();
	}
	
	public XBind getBind(int id){
		return binds.get(new Integer(id));
	}
	
	public void addBind(XBind bind){
		binds.put(bind.getId(), bind);
	}
	
	public List<XBind> getBinds(){
		return new LinkedList<XBind>(binds.values());
	}
}
